package com.ssm.platform.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ssm.basis.model.pojo.domain.BaseDo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author jhxxb
 * @since 2021-11-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("authorities")
@Schema(description = "权限表")
public class AuthoritiesDo extends BaseDo<AuthoritiesDo> {

    private static final long serialVersionUID = 1L;

    @Schema(description = "权限名")
    @TableId(value = "authority", type = IdType.INPUT)
    private String authority;

    @Schema(description = "描述")
    private String description;


    @Override
    public Serializable pkVal() {
        return this.authority;
    }

}
